/* 核心知识页面样式 */

/* 知识分类 */
.knowledge-categories {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    background-color: var(--card-color);
    border-bottom: 1px solid var(--border-color);
}

.knowledge-category {
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    background-color: var(--background-color);
    color: var(--text-color);
}

.knowledge-category.active {
    background-color: var(--primary-color);
    color: white;
}

/* 知识点列表 */
.knowledge-list {
    padding: 15px;
}

.knowledge-card {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.knowledge-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.knowledge-tag {
    font-size: 12px;
    color: var(--accent-color);
    background-color: rgba(255, 112, 67, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
}

.knowledge-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.knowledge-content p {
    margin-bottom: 10px;
}

.knowledge-content ul, .knowledge-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.knowledge-content li {
    margin-bottom: 5px;
}

.knowledge-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

.knowledge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.knowledge-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--light-text);
}

.knowledge-meta i {
    margin-right: 5px;
}

.knowledge-meta span {
    margin-right: 15px;
}

.knowledge-actions {
    display: flex;
}

.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    color: var(--light-text);
}

/* 知识图谱 */
.knowledge-map {
    padding: 15px;
    background-color: var(--card-color);
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.map-header h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-color);
}

.map-container {
    height: 200px;
    background-color: var(--background-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
}

/* 搜索框 */
.search-container {
    padding: 15px;
}

.search-input {
    display: flex;
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-color);
}

.search-input input::placeholder {
    color: var(--light-text);
}

.search-input i {
    color: var(--light-text);
    font-size: 18px;
} 